<h1 class="title">Item</h1>

<form name="form_item" id="form_item" method="post" action="<?php echo BASE ?>instalacao/salvarItemLista">
	<input type="hidden" name="id" id="id">
	<ul>
		<li>
			<label for="nome">Lista:</label>
			<select name="id_lista" id="id_lista">
			<option value="">[-- Selecione --]</option>
			<?php foreach($listas as $lista): ?>
				<option value="<?php echo $lista['id']; ?>"><?php echo $lista['nome']; ?></option>
			<?php endforeach; ?>
			</select>
		</li>
		<li>
			<label for="nome">Nome:</label>
			<input type="text" name="nome" id="nome" size="50" />
		</li>
		<li>
			<label for="valor">Valor:</label>
			<input type="text" name="valor" id="valor" size="50" />
		</li>
		<li>
			<input type="submit" value="Salvar" />
		</li>
	</ul>
</form>

<table width="100%" cellpadding="5">
	<thead>
		<tr>
			<th>Nome</th>
			<th>Valor</th>
			<th>Status</th>
		</tr>
	</thead>
	<tbody id="lista_itens"></tbody>
</table>